[Ruby] [gem] A GEM error shown during run the commend: gem update --system
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-06-18T07:19:48Z
Indexed on
2010/06/18
8:23 UTC
Read the original article
Hit count: 712
ruby
I’m a freshman on Ruby and now trying to install ruby on my machine according to the Tutorial on http://wiki.openqa.org/display/WTR/Tutorial
However, after I installed the ruby186-26, and run the command “gem update --system”, the following error occurred:
C:\Documents and Settings\e482090\Desktop>gem update --system
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in initialize': Inval
id argument - <Not Set>/.gemrc (Errno::EINVAL)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in
open'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in initi
alize' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:36:in
new'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:36:in do_con
figuration' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:25:in
run'
from c:/ruby/bin/gem:23
C:\Documents and Settings\e482090\Desktop>gem install watir
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in initialize': Inval
id argument - <Not Set>/.gemrc (Errno::EINVAL)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in
open'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in initi
alize' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:36:in
new'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:36:in do_con
figuration' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:25:in
run'
from c:/ruby/bin/gem:23
Meanwhile, we have tried this on other machines and the result turned out ok.
Thus, my question is why the error happened on my pc? Have you met this kind of error before?
© Stack Overflow or respective owner